
ifeq ($(MY_SPROOT),)
  $(error MY_SPROOT must be set to build.)
endif

RM = /bin/rm -f

.PHOHY: all

all:
	$(MY_SQROOT)/build-scripts/enum2perl \
		$(MY_SPROOT)/export/include/common/spscore.h \
		$(MY_SPROOT)/export/include/common/sphealth.h \
		$(MY_SPROOT)/export/include/common/spstate.h \
		$(MY_SPROOT)/export/include/common/spobjecttype.h \
		$(MY_SPROOT)/export/include/common/spobjectsubtype.h \
		> $(MY_SQROOT)/export/lib/Vili/Const.pm

clean:
	$(RM) $(MY_SQROOT)/export/lib/Vili/Const.pm

